package com.ruoyi.develop.statistics.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.develop.statistics.domain.StatisticsDomain;
import com.ruoyi.develop.statistics.service.IStatisticsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/statistics/Statistics")
public class StatisticsController {

    @Resource
    private IStatisticsService statisticsService;

    @GetMapping("/getStatisticsForOrder")
    public AjaxResult getStatisticsForOrder(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForOrder(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForFundBack")
    public AjaxResult getStatisticsForFundBack(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForFundBack(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForSale")
    public AjaxResult getStatisticsForSale(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForSale(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForStock")
    public AjaxResult getStatisticsForStock(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForStock(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForReimburse")
    public AjaxResult getStatisticsForReimburse(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForReimburse(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForPrjBase")
    public AjaxResult getStatisticsForPrjBase(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForPrjBase(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForPrjInvoise")
    public AjaxResult getStatisticsForPrjInvoise(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForPrjInvoise(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForPrjFundBack")
    public AjaxResult getStatisticsForPrjFundBack(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForPrjFundBack(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForPay")
    public AjaxResult getStatisticsForPay(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForPay(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForGet")
    public AjaxResult getStatisticsForGet(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForGet(entity);
        return AjaxResult.success(retMap);
    }

    @GetMapping("/getStatisticsForSelfInvoice")
    public AjaxResult getStatisticsForSelfInvoice(StatisticsDomain entity) {
        Map<String, Object> retMap = statisticsService.getStatisticsForSelfInvoice(entity);
        return AjaxResult.success(retMap);
    }






















}
